#include "EntityPlayer.h"


void EntityPlayer::receiveInput(char key)
{

	if(key == 'w') {		m_force.y = -moveForce;}  //
	else if(key == 'a') {	m_force.x = -moveForce;}
	else if(key == 's') {	m_force.x = moveForce;}
	else if(key == 'd') {	m_force.y = moveForce;}
	else if(key == ' ') {	}
};

void EntityPlayer::update()
{
	//there needs to be a way to get delta time into a GameObject.

	m_velocity += m_force ; // * deltaTime;
	m_position += m_velocity ; // * deltaTime 
	

	GameObject::update();


}